<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::group(['middleware' => ['moon.auth','ao']], function () {
    Route::get('/prize', 'Api\ActivityGoodsController@prize');
});


Route::group(['middleware' => ['ao']], function () {
    Route::get('/follow', function (\Illuminate\Http\Request $request){
        return view('follow', ['wid' => $request->get('wid')]);
    });
});